# -*- coding: utf-8 -*-
import os

from google.appengine.ext.webapp import template

class Pages():
    def getHeader(self, title):
        template_values = {
            'title': title
        }
        path = os.path.join(os.path.dirname(__file__), '../html/header.html')
        return template.render(path, template_values)
    
        
    def getFoot(self, ip):
        template_values = {
            'ip_addr': ip
        }
        path = os.path.join(os.path.dirname(__file__), '../html/foot.html')
        return template.render(path, template_values)
    
    